/****************************************************
 * @class FURSelectionWindow
 * @extends Ext.Window
 ***************************************************/
	FURSelectionWindow = Ext.extend(Ext.Window,{
		furSelectionGrid: null,
		txtfld: null,
		constructor: function(config){
			Ext.apply(this,config);
			
			FURSelectionWindow.superclass.constructor.call(this, {
				layout: 'fit',
				width: 420,
				height: 480,
				modal: true,
				plain: true,
				resizable: false,
				closeAction: 'hide',
				buttonAlign: 'center',
				items: this.furSelectionGrid,
				buttons: [{
					text: "确定",
					scope: this,
					handler: function(){
					}
				},{
					text: "关闭",
					scope: this,
					handler: function(){
						this.hide();
					}
				}]
			});
		},
		load: function(){
			this.furSelectionGrid.store.load();
		}
	});
/****************************************************
 * @class FURSelectionGridPanel
 * @extends Ext.grid.GridPanel
 ***************************************************/
	FURSelectionGridPanel = Ext.extend(Ext.grid.GridPanel,{
		condition: null,
		store: null,
		cm: null,
		searchField: null,
		txtfld: null,
		constructor: function(config){
			Ext.apply(this,config);
			
			this.condition = {};
			this.condition.limit = 50;
			
			this.store = new Ext.data.Store({
			    baseParams: this.condition,   
				proxy: new Ext.data.HttpProxy({
					method: 'POST',
					url: '/pdm/pm/getFURList.htm'
				}),
				reader: new Ext.data.JsonReader({
					totalProperty: 'totalProperty',
					root: 'root',
					id: 'followUpRequisition_ID'
				},[
					{name: 'followUpRequisition_ID'},
					{name: 'trackingNumber'},
					{name: 'requisitioner'},
					{name: 'memo'}
				])
			});
			
			this.cm = new Ext.grid.ColumnModel([
		        {
		           header: "签核单号",
		           dataIndex: 'trackingNumber',
		           sortable: true,
		           width: 80
		        },{
		           header: "起草人",
		           dataIndex: 'requisitioner',
		           sortable: true,
		           width: 80
		        },{
		           header: "摘要",
		           dataIndex: 'memo',
		           sortable: true,
		           width: 100
		        }]);
	        
			FURSelectionGridPanel.superclass.constructor.call(this, {
			    loadMask: {msg: "信息载入中..."},
			    viewConfig: {forceFit: true},
				region: 'center',
				border: false,
				height: 500,
				layout: 'fit',
				split: true,
				stripeRows: true,
				ds: this.store,
				sm: new Ext.grid.RowSelectionModel({singleSelect:true}),
				cm: this.cm,
				trackMouseOver: false,
				tbar: ["查询："],
				bbar: new Ext.PagingToolbar({
					pageSize: 50,
					store: this.store,
					displayInfo: true
				})
			});
			
			this.on('rowdblclick', function(grid, rowIndex, e) {
				
			});
		}
	});